#pragma once
# include "RBTree.h"

namespace xx
{
	template<class K, class V>
	class Mymap
	{
	public:
		typedef RBTree::Iterator iterator;
		typedef RBTree::const_Iterator const_iterator;

		struct MymapREK()
		{
			const K& operator()(const pair<K, V>&kv)
			{
				return kv.first;
			}
		}
		bool insert(const pair<K, V>& kv)
		{
			return _t.insert(kv);
		}
	private:
		RBTree<K, pair<K, V>, MymapREK> _t;
	};

}